package main

import "fmt"

func main() {

	fmt.Println("main()")
	// fmt.Println(h1([4]int{1,2,3,4}))

	// a:=[4]int{1,2,3,4}
	// a1 := h1(a)
	// fmt.Println(a)
	// fmt.Println(a1)

	// b := [4]int{2, 3, 4, 5}

	// c := h2(&b)

	// fmt.Println(b)
	// fmt.Println(*c)

	d := []int{5, 6, 7, 8}
	d1 := h3(d)
	fmt.Println(d)
	fmt.Println(d1)

}

func h1(nums [4]int) [4]int {
	for i, value := range nums {
		nums[i] = value + 1
	}
	return nums
}

func h2(nums *[4]int) *[4]int {
	for i, value := range nums {
		nums[i] = value + 1
	}
	return nums
}

func h3(nums []int) []int {
	for i, value := range nums {
		nums[i] = value + 1
	}
	return nums
}
